﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FullThrustLogic.ShipComponent
{
    public class FireControlSystem
    {
        public FireControlSystem()
        {
            AttackOrders = new List<AttackOrder>();
        }

        public string DisplayName
        {
            get
            {
                string _displayName = "Fire Control System,";

                if(Enabled)
                {
                    _displayName += "Enabled,";
                }
                else
                {
                    _displayName += "Diabled,";
                }

                if(TargetShip!=null )
                {
                    _displayName += "In Use";
                }
                else
                {
                    _displayName += "Not In Use";
                }

                return _displayName;
            }
        }

        public bool Enabled
        {
            get;
            set;
        }

        public List<AttackOrder> AttackOrders
        {
            get;
            set;
        }

        public Ship TargetShip
        {
            get;
            set;
        }
    }
}
